package com.guigu.tms.base.controller;

import com.guigu.tms.base.service.ITruckTypeService;
import com.guigu.tms.commons.base.entity.TruckType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 车辆类型表 前端控制器
 * </p>
 *
 * @author zhh
 * @since 2022-09-23
 */
@RestController
@RequestMapping("/truckType")
public class TruckTypeController {
    @Autowired
    ITruckTypeService service;
    //车辆类型查询全部
    @GetMapping("/truckTypeAll")
    public List<TruckType> list() {

        return service.list();
    }
}
